package com.fyyg.wechat.controller.pkgpro;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fyyg.interfaces.TBusiProductPkgService;
import com.fyyg.model.GenericResponse;
import com.fyyg.model.ProductBuy;


@RequestMapping("/pkgpro")
@Controller
public class PkgProController{
	
	
	@Autowired
	TBusiProductPkgService tBusiProductPckService;

	@RequestMapping("/queryPkgPro")
	public @ResponseBody GenericResponse<ProductBuy> queryPkgPro(){
		ProductBuy productBuy = null;
		try {
			productBuy = tBusiProductPckService.queryProPkg();
		}catch(Exception e) {
			e.printStackTrace();
		}finally {
		}
		return GenericResponse.ok(productBuy);
		
	}
	
}
